import 'package:flutter/material.dart';
import 'package:love_app/common/su.dart';
import 'package:love_app/providers/share_provider.dart';
import 'package:provider/provider.dart';

// 空路由
class RouteNull extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('空路由'),),
    );
  }
}


// 页面建设中
class PageBuildImg extends StatefulWidget {
  @override
  _PageBuildImgState createState() => _PageBuildImgState();
}

class _PageBuildImgState extends State<PageBuildImg> {

  ShareProvider _shareProvider;

  @override
  void didChangeDependencies() {
    super.didChangeDependencies();
    _shareProvider = Provider.of<ShareProvider>(context, listen: false);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: Su().appBar(
        "页面正在建设中",
        colors: _shareProvider.themeColor,
      ),
      body: _body(),
    );
  }

  Widget _body(){
    return Center(
      child: Container(
        child: Icon(
          Icons.sentiment_satisfied,
          size: Su().w(200),
          color: _shareProvider.textColor,
        ),
      ),
    );
  }
}